package org.zhxy.core.principal.controller;

import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.zhxy.common.aop.AutomaticLog;
import org.zhxy.common.config.ServiceFactory;
import org.zhxy.common.response.Result;

import java.util.Map;

@RestController
@RequestMapping("/department")
public class DepartmentController {

    @AutomaticLog("保存或修改教师所在部门，可多选")
    @RequestMapping(value = "/saveOrUpdateTeacherDepartment",method = RequestMethod.POST)
    public Result saveOrUpdateTeacherDepartment(@RequestBody Map<String, Object> map){
        return ServiceFactory.departmentService.saveOrUpdateTeacherDepartment(map);
    }
}